/*
 * Copyright 2008 David L. Whitehurst, Cape Henry Technologies Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cpht.app.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "requirements", catalog = "genesis_development")
public class Requirement implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -4309418769447211179L;

    private int id;

    private String specification;

    private String affectedProject;

    private String affectedVersion;

    private String affectedProjectCategory;

    private Date createDate;

    public Requirement() {
    }

    public Requirement(int id) {
        this.id = id;
    }

    public Requirement(int id, String specification, String affectedProject,
            String affectedVersion, String affectedProjectCategory,
            Date createDate) {
        this.id = id;
        this.specification = specification;
        this.affectedProject = affectedProject;
        this.affectedVersion = affectedVersion;
        this.affectedProjectCategory = affectedProjectCategory;
        this.createDate = createDate;
    }

    @Id
    @Column(name = "id", unique = true, nullable = false)
    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "specification")
    public String getSpecification() {
        return this.specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    @Column(name = "affected_project")
    public String getAffectedProject() {
        return this.affectedProject;
    }

    public void setAffectedProject(String affectedProject) {
        this.affectedProject = affectedProject;
    }

    @Column(name = "affected_version")
    public String getAffectedVersion() {
        return this.affectedVersion;
    }

    public void setAffectedVersion(String affectedVersion) {
        this.affectedVersion = affectedVersion;
    }

    @Column(name = "affected_project_category")
    public String getAffectedProjectCategory() {
        return this.affectedProjectCategory;
    }

    public void setAffectedProjectCategory(String affectedProjectCategory) {
        this.affectedProjectCategory = affectedProjectCategory;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "create_date", length = 10)
    public Date getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

}
